package com.xx.ch06.demo.demo20;

import com.xx.ch05.demo.demo01.dao.UserDao;
import com.xx.ch05.demo.demo01.entity.User;
import org.springframework.stereotype.Component;

/**
 * @author 许欣
 * 时间：2022/4/16 15:48
 * 描述：
 */
@Component("userDao")
public class UserDaoImpl implements UserDao {
    @Override
    public UserDao save(User user) {
        System.out.println("保存用户信息到数据库");
        return (UserDao) user;
    }

}
